home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / arcers / tarsrc.zip / TARSRC.TAR / tar-1.11.2 / wnt_dir.h < prev   
C/C++ Source or Header  |  1993-12-01  |  563b  |  33 lines

  1. /*
  2.   BSD directory emulation functions for Windows NT
  3.   Written by Drew Bliss, Nov 93
  4.   */
  5. #ifndef __WNT_DIR_H__
  6. #define __WNT_DIR_H__
  7.  
  8. #define MAXNAMLEN _MAX_PATH
  9.  
  10. #include <sys\types.h>
  11.  
  12. struct dirent
  13. {
  14.     ino_t d_ino;
  15.     int d_reclen;
  16.     int d_namlen;
  17.     char d_name[MAXNAMLEN + 1];
  18. };
  19.  
  20. typedef struct _dirdesc
  21. {
  22.     void *h;
  23.     struct dirent ent;
  24.     int first;
  25.     int no_files;
  26. } DIR;
  27.  
  28. extern DIR *opendir(char *path);
  29. extern struct dirent *readdir(register DIR *dirp);
  30. extern void closedir(register DIR *dirp);
  31.  
  32. #endif
  33.